<?xml version="1.0" encoding="UTF-8"?>
<!-- 
	old version imports, repalce with "xmlns:uml" and "xsi:schemaLocation" - RSingh 04/26/2010
	xmlns:Standard="http://www.eclipse.org/uml2/schemas/Standard/1" 
	xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML" 
 -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
	xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" 
	xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:uml="http://schema.omg.org/spec/UML/2.1.1" 
	xsi:schemaLocation="http://schema.omg.org/spec/UML/2.1.1 http://www.eclipse.org/uml2/2.1.0/UML" 
	xmlns:servU="xalan://gov.dhs.cis.soa.xslt.ServicesUtils" 
	xmlns:servO="xalan://gov.dhs.cis.soa.data.Service" 
	extension-element-prefixes="servU servO" >
	
	<xsl:output method="text"/>
	
	<xsl:param name="DELIM">|</xsl:param>
	<xsl:param name="NEWLN">&#10;</xsl:param>
	<xsl:param name="SERVOBJ" select="servO:new()"/>
	<xsl:template match="uml:Model">
		<xsl:for-each select="packagedElement[@name='007_Services']">
			<xsl:for-each select="packagedElement[@xmi:type='uml:Class']">
 	   			<xsl:value-of select="servU:initialize($SERVOBJ)"/>
				
				<xsl:variable name="servUMId" select="@xmi:id"/>
				
 	   			<xsl:value-of select="servU:parseName($SERVOBJ, string(@name))"/>
				<xsl:for-each select="ownedOperation">
					<xsl:variable name="servopname" select="@name"/>
					<xsl:for-each select="ownedParameter">
	 	   				<xsl:value-of select="servU:parseOperation($SERVOBJ, string($servopname), string(@direction), string(@name))"/>
	 	   			</xsl:for-each>
   				</xsl:for-each>
   				
   				<xsl:value-of select="servU:serviceOpsToString($SERVOBJ, string($DELIM))"/>
 		   </xsl:for-each>
 	   </xsl:for-each>
     </xsl:template>
</xsl:stylesheet>